import { useRouter } from 'next/navigation'

export default function RelationExplore ({ id, name }) {

    const router = useRouter()
    
    return (
        <div className="text-sm text-primary cursor-pointer" onClick={() => (router.push(`/association-graph/${id}?name=${name}&tab=graph&graph=people2people`))}>
            <span>
                关系探索
            </span>
        </div>
    )
}